package com.hrms.pojo;

import java.util.Date;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.poi.ss.usermodel.CellStyle;

/**
 * 员工合同
 *
 * @author LK
 * @since 2021-10-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ContractManage  extends BaseRowModel implements Serializable {

    //页码
    //exist = false 表示不配置这个属性和表的映射关系
    @TableField(exist = false)
    private Integer page = 1;
    //每页显示条数
    @TableField(exist = false)
    private Integer row =3;

    private static final long serialVersionUID=1L;

    @TableField(exist = false)
    private Map<Integer, CellStyle> cellStyleMap = new HashMap();
    /*
    * id
    * */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 合同编号
     */
    @ExcelProperty(value = {"合同编号"}, index = 0)
    private Integer contractId;

    /**
     * 员工编号
     */
    @ExcelProperty(value = {"员工编号"}, index = 1)
    private Integer staffId;

    /**
     * 合同的开始日期
     */
    @ExcelProperty(value = {"合同开始时间"}, index = 2)
    private String contractBeginDate;

    /**
     * 结束日期
     */
    @ExcelProperty(value = {"合同结束时间"}, index = 3)
    private String contractEndDate;

    /**
     * 职务
     */
    @ExcelProperty(value = {"员工职务"}, index = 4)
    private String staffPost;

    /**
     * 合同内容
     */
    @ExcelProperty(value = {"合同内容"}, index = 5)
    private String contractContent;

    /**
     * 备注
     */
    @ExcelProperty(value = {"备注"}, index = 6)
    private String remarks;

    @TableField(exist = false)
    int sort=0;

}
